gtk4.git
8 years agospinbutton: Remove an unnecessary queue_draw call
Timm Bäder [Thu, 15 Mar 2018 08:44:49 +0000 (09:44 +0100)]
spinbutton: Remove an unnecessary queue_draw call

This is done automatically in case the spinbutton value actually
changes.

8 years agogdk: Remove unused variable
Timm Bäder [Wed, 14 Mar 2018 19:41:09 +0000 (20:41 +0100)]
gdk: Remove unused variable

8 years agoGskGLDriver: Use g_assert_cmphex for GL constants
Timm Bäder [Wed, 14 Mar 2018 18:21:09 +0000 (19:21 +0100)]
GskGLDriver: Use g_assert_cmphex for GL constants

8 years agotestspinbutton: Add button to toggle wrap on Spins
Daniel Boles [Wed, 14 Mar 2018 22:39:19 +0000 (22:39 +0000)]
testspinbutton: Add button to toggle wrap on Spins

I found myself wanting to test this for something else, so let's test
it. It revealed a bug immediately!

https://gitlab.gnome.org/GNOME/gtk/issues/88

8 years agotestspinbutton: Orient box orthogonally to Spins
Daniel Boles [Wed, 14 Mar 2018 22:37:34 +0000 (22:37 +0000)]
testspinbutton: Orient box orthogonally to Spins

This makes better use of space.

8 years agotestsuite: Simplify GL test definition
Timm Bäder [Wed, 14 Mar 2018 16:24:28 +0000 (17:24 +0100)]
testsuite: Simplify GL test definition

8 years agotestsuite: Add a GL tests for clipped rounded clipped nodes
Timm Bäder [Wed, 14 Mar 2018 11:39:15 +0000 (12:39 +0100)]
testsuite: Add a GL tests for clipped rounded clipped nodes

8 years agogl renderer: Draw rounded clip child to a texture
Timm Bäder [Wed, 14 Mar 2018 11:36:32 +0000 (12:36 +0100)]
gl renderer: Draw rounded clip child to a texture

And then clip the texture using the current (maybe also rounded) clip.
This way, the result is correct. We don't necessarily have to do the
offscreen drawing in any case, but got the safe route for now.

8 years agogl renderer: Properly draw gl textures from a different context
Timm Bäder [Wed, 14 Mar 2018 11:23:38 +0000 (12:23 +0100)]
gl renderer: Properly draw gl textures from a different context

Temporarily switch to the texture's gl context, download the texture and
create a new one in our context for it.

8 years agofixed: Remove snapshot implementation
Timm Bäder [Wed, 14 Mar 2018 10:00:02 +0000 (11:00 +0100)]
fixed: Remove snapshot implementation

It does the same thing as the default implementation.

8 years agosnapshot: Ignore 0 sized clip nodes
Timm Bäder [Wed, 14 Mar 2018 09:51:55 +0000 (10:51 +0100)]
snapshot: Ignore 0 sized clip nodes

This may happen due to the intersection before.

8 years agogtkmenu: Remove unused constant
Carlos Soriano [Wed, 14 Mar 2018 15:03:38 +0000 (16:03 +0100)]
gtkmenu: Remove unused constant

It was used in gtk3 but not in master anymore.

8 years agosnapshot: Add missing (nullable) annotation
Timm Bäder [Tue, 13 Mar 2018 21:41:18 +0000 (22:41 +0100)]
snapshot: Add missing (nullable) annotation

8 years agowidget: Simplify setting a default direction
Timm Bäder [Mon, 12 Mar 2018 09:00:52 +0000 (10:00 +0100)]
widget: Simplify setting a default direction

No reason for the second paramter to be a pointer.

8 years agolabel: Remove dead NULL check
Timm Bäder [Sat, 10 Mar 2018 14:44:53 +0000 (15:44 +0100)]
label: Remove dead NULL check

We only create the gesture when priv->select_info is !NULL.

8 years agoMerge branch 'master' into 'master'
Christoph Reiter [Tue, 13 Mar 2018 20:30:53 +0000 (20:30 +0000)]
Merge branch 'master' into 'master'

Add proper annotation for gdk_frame_clock_get_refresh_info

See merge request GNOME/gtk!55

8 years agorun-docker.sh: Disable SELinux for the container and update the image tag
Christoph Reiter [Tue, 13 Mar 2018 20:08:56 +0000 (21:08 +0100)]
run-docker.sh: Disable SELinux for the container and update the image tag

On Fedora and similar SELinux by default prevents containers accessing
mounted host directories. This script is just used for testing,
so disable it.

8 years agoUpdate CONTRIBUTING.md
Emmanuele Bassi [Tue, 13 Mar 2018 18:13:46 +0000 (18:13 +0000)]
Update CONTRIBUTING.md

Update the instructions to match the GitLab workflow.

8 years agoci: Add explicit dependency on "which"
Emmanuele Bassi [Tue, 13 Mar 2018 17:56:44 +0000 (17:56 +0000)]
ci: Add explicit dependency on "which"

The xvfb-run script depends on it, but it seems Fedora packages ended up
forgetting about it.

8 years agoci: Remove ccache
Emmanuele Bassi [Tue, 13 Mar 2018 17:03:27 +0000 (17:03 +0000)]
ci: Remove ccache

There are issues with the caching; CI will randomly fail to create new
files used when testing features.

8 years agoci: Add GLib build dependencies
Emmanuele Bassi [Tue, 13 Mar 2018 16:28:42 +0000 (16:28 +0000)]
ci: Add GLib build dependencies

Since we may end up building GLib as a subproject, we're going to need
all the appropriate GLib build dependencies as well as the GTK ones.

8 years agoci: Use a different Docker image
Emmanuele Bassi [Tue, 13 Mar 2018 16:05:03 +0000 (16:05 +0000)]
ci: Use a different Docker image

I've rebuilt the new Docker image we use for CI to include GStreamer in
the dependencies.

We really need to have the Docker registry hosted on gnome.org, to avoid
pointing people at Dockerhub.

8 years agoAnnotate gdk_gl_texture_new() appropriately
Emmanuele Bassi [Mon, 12 Mar 2018 10:06:59 +0000 (10:06 +0000)]
Annotate gdk_gl_texture_new() appropriately

This is a constructor, and it needs a transfer annotation.

Sadly, the resulting introspection representation is going to be a less
than satisfactory `Gdk.gl_texture_new()`, because there is no such thing
as a GdkGLTexture in the public API.

8 years agoInitialise variables
Emmanuele Bassi [Mon, 12 Mar 2018 10:03:54 +0000 (10:03 +0000)]
Initialise variables

The dx and dy variables may be left uninitialized by the coordinate
translation — or so the C compiler thinks. Let's avoid a warning when
building.

8 years agoUse the same arguments for print backends
Emmanuele Bassi [Mon, 12 Mar 2018 10:02:24 +0000 (10:02 +0000)]
Use the same arguments for print backends

All the print backend shared modules should use the same C preprocessor
symbols.

8 years agoci: Add gstreamer to the Docker image
Emmanuele Bassi [Mon, 12 Mar 2018 09:54:56 +0000 (09:54 +0000)]
ci: Add gstreamer to the Docker image

We're going to need it for the media interface.

8 years agoci: Use the right path for the logs
Emmanuele Bassi [Thu, 1 Mar 2018 10:23:14 +0000 (17:23 +0700)]
ci: Use the right path for the logs

The meson-logs directory is under the `_build` directory.

8 years agoMerge branch 'query-wayland-registry' into 'master'
Matthias Clasen [Tue, 13 Mar 2018 02:09:26 +0000 (02:09 +0000)]
Merge branch 'query-wayland-registry' into 'master'

gtkimmodule: make match_backend() query

See merge request GNOME/gtk!56

8 years agoFileChooserWidget: Fix leaks in .get_subtitle()
Daniel Boles [Tue, 13 Mar 2018 00:19:51 +0000 (00:19 +0000)]
FileChooserWidget: Fix leaks in .get_subtitle()

Now that subtitle's default value "Searching" for OPERATION_MODE_SEARCH
is duplicated as it should be, we cannot reassign other strings to it
anymore, as that resulted in the original dupe of "Searching" leaking.

Fix this by only assigning the dup'd "Searching" after trying to get
more specific values, not before. We therefore need to set it to NULL
during its declaration, and that means we needn't in the final else.

8 years agoFileChooserWidget: Avoid crash freeing static str
Daniel Boles [Mon, 12 Mar 2018 22:44:37 +0000 (22:44 +0000)]
FileChooserWidget: Avoid crash freeing static str

Having a FileChooserDialog in location-entry mode then pressing
<primary>f to move to search mode would crash with an invalid free().

In that case, FileChooserWidget.get_subtitle() returned a static string
straight from gettext. This crashed when the GBinding from :subtitle to
FileChooserDialog’s HeaderBar:subtitle shortly tried to free the string.

Fix by duplicating the string before returning it, like all other paths.

https://bugzilla.gnome.org/show_bug.cgi?id=791004

8 years agogtkimmodule: make match_backend() query
Peter Bloomfield [Mon, 12 Mar 2018 21:46:57 +0000 (17:46 -0400)]
gtkimmodule: make match_backend() query

…the wayland registry.

Wnen _gtk_im_module_get_default_context_id calls
match_backend (context_id) and the default GdkDisplay
is wayland, match_backend() should return TRUE only if
gdk_wayland_display_query_registry (display, "gtk_text_input_manager")
returns TRUE.

8 years agoUpdate Russian translation
Stas Solovey [Mon, 12 Mar 2018 21:08:05 +0000 (21:08 +0000)]
Update Russian translation

(cherry picked from commit 0e016686838982253b1dc161f4d9df48ce091abd)

8 years agoUpdated Lithuanian translation
Aurimas Černius [Mon, 12 Mar 2018 21:00:48 +0000 (23:00 +0200)]
Updated Lithuanian translation

8 years agotestinfobar: Test more properties, response signal
Daniel Boles [Mon, 12 Mar 2018 18:57:06 +0000 (18:57 +0000)]
testinfobar: Test more properties, response signal

Also test :message-type, :show-close-button, and ::response.

8 years agoUpdated Czech translation
Marek Černocký [Mon, 12 Mar 2018 19:08:48 +0000 (20:08 +0100)]
Updated Czech translation

8 years agoUpdate Estonian translation
Mart Raudsepp [Mon, 12 Mar 2018 16:27:50 +0000 (16:27 +0000)]
Update Estonian translation

(cherry picked from commit e4e2b7687d455566b2102404487fcaa6b1b0077a)

8 years agotexture: Change download vfunc
Benjamin Otte [Mon, 12 Mar 2018 16:17:30 +0000 (17:17 +0100)]
texture: Change download vfunc

A problem with textures is that they can become too big for GPU memory,
which would require tiling. But for tiling we only need to download
the pixels needed by the tile.

Similarly, there might be interest to not upload full textures if a
renderer knows it only needs a small part.

Both of these methods require the ability to specify an area of the
texture to be downloaded. So change the download vfunc to include
this parameter now before we add even more textures later.

A private gdk_texture_download_area() function has also been added, but
nobody is using it yet.

8 years agotexture: Export gdk_memory_texture_new() and GdkMemoryFormat
Benjamin Otte [Mon, 12 Mar 2018 04:12:54 +0000 (05:12 +0100)]
texture: Export gdk_memory_texture_new() and GdkMemoryFormat

Also add tests for all these newfangled formats.

8 years agoMerge branch 'wip/dboles/frame-yalign-byealign' into 'master'
Daniel Boles [Mon, 12 Mar 2018 16:17:11 +0000 (16:17 +0000)]
Merge branch 'wip/dboles/frame-yalign-byealign' into 'master'

Frame: Erase the now-useless property label-yalign

See merge request GNOME/gtk!40

8 years agoListBox: Avoid ::row-activated/Row::activate ambig
Daniel Boles [Mon, 12 Mar 2018 16:08:29 +0000 (16:08 +0000)]
ListBox: Avoid ::row-activated/Row::activate ambig

…uity, by adding a doc comment to Row::activate explaining what it does
and why it is probably not what the user reading that is looking for.

https://bugzilla.gnome.org/show_bug.cgi?id=794008

8 years agoUpdate Polish translation
Piotr Drąg [Mon, 12 Mar 2018 15:48:31 +0000 (16:48 +0100)]
Update Polish translation

8 years agotestinfobar: Add simple test of :visible/:revealed
Daniel Boles [Mon, 12 Mar 2018 15:29:21 +0000 (15:29 +0000)]
testinfobar: Add simple test of :visible/:revealed

This exists merely to prove that, having added :revealed, show() and
hide() now work reliably, as does set_revealed() for the animated case.

https://bugzilla.gnome.org/show_bug.cgi?id=710888

8 years agoAdd proper annotation for gdk_frame_clock_get_refresh_info
Sander Sweers [Mon, 12 Mar 2018 13:29:09 +0000 (14:29 +0100)]
Add proper annotation for gdk_frame_clock_get_refresh_info

See https://gitlab.gnome.org/GNOME/gtk/issues/77

8 years agoFrame: Erase the now-useless property label-yalign
Daniel Boles [Thu, 1 Mar 2018 19:53:53 +0000 (19:53 +0000)]
Frame: Erase the now-useless property label-yalign

The border is now drawn on the frame node, not using an internal border
node, so we are no longer able to align the label to vertically overlap
the border. The property no longer performs its original purpose, & nor
is it a useful candidate for giving a new role, so no point keeping it.

https://bugzilla.gnome.org/show_bug.cgi?id=778886

8 years agoUpdate Hungarian translation
Balázs Meskó [Mon, 12 Mar 2018 06:21:39 +0000 (06:21 +0000)]
Update Hungarian translation

8 years agoUpdate POTFILES.in
Piotr Drąg [Sun, 11 Mar 2018 18:28:03 +0000 (19:28 +0100)]
Update POTFILES.in

8 years agoMerge branch 'module-reorg' into 'master'
Matthias Clasen [Sun, 11 Mar 2018 16:47:43 +0000 (16:47 +0000)]
Merge branch 'module-reorg' into 'master'

Consolidate print backends into one directory

See merge request GNOME/gtk!53

8 years agoConsolidate print backends into one directory
Matthias Clasen [Sun, 11 Mar 2018 16:18:16 +0000 (12:18 -0400)]
Consolidate print backends into one directory

This will let us use GTK_PATH to load them uninstalled, which
is useful for in-tree tests.

8 years agoExit cleanly if no display is found
Matthias Clasen [Sun, 11 Mar 2018 12:14:14 +0000 (08:14 -0400)]
Exit cleanly if no display is found

We should not try to create an inspector window and generate
tons of ugly warnings in this case.

8 years agoUpdated Czech translation
Marek Černocký [Sun, 11 Mar 2018 08:43:01 +0000 (09:43 +0100)]
Updated Czech translation

8 years agoUpdated Czech translation
Marek Černocký [Sun, 11 Mar 2018 07:14:09 +0000 (08:14 +0100)]
Updated Czech translation

8 years agoFixed typo in script name Kjohki -> Khojki
Marek Černocký [Sun, 11 Mar 2018 07:12:31 +0000 (08:12 +0100)]
Fixed typo in script name Kjohki -> Khojki

8 years agoMerge branch 'wip/matthiasc/snapshot' into 'master'
Matthias Clasen [Sun, 11 Mar 2018 05:39:00 +0000 (05:39 +0000)]
Merge branch 'wip/matthiasc/snapshot' into 'master'

Implement builder pattern for GtkSnapshot

See merge request GNOME/gtk!52

8 years agoUse GtkSnapshot getters
Matthias Clasen [Sun, 11 Mar 2018 05:29:46 +0000 (00:29 -0500)]
Use GtkSnapshot getters

We can avoid direct struct access and gtksnapshotprivate.h
everywhere.

8 years agoGtkSnapshot: Add getters
Matthias Clasen [Sun, 11 Mar 2018 05:17:53 +0000 (00:17 -0500)]
GtkSnapshot: Add getters

These getters can be useful when creating new snapshots
in a snapshot() vfunc.

8 years agoDocument new snapshot api
Matthias Clasen [Sun, 11 Mar 2018 02:29:46 +0000 (21:29 -0500)]
Document new snapshot api

8 years agoGtkSnapshot: Drop init/finish
Matthias Clasen [Sun, 11 Mar 2018 02:20:25 +0000 (21:20 -0500)]
GtkSnapshot: Drop init/finish

We are ont using stack-allocated snapshots anymore.

8 years agoStop using stack-allocated snapshots
Matthias Clasen [Sun, 11 Mar 2018 02:14:09 +0000 (21:14 -0500)]
Stop using stack-allocated snapshots

Use the new/free api instead of init/finish
for GtkSnapshot.

8 years agoGtkSnapshot: Implement the builder pattern
Matthias Clasen [Sun, 11 Mar 2018 01:52:06 +0000 (20:52 -0500)]
GtkSnapshot: Implement the builder pattern

Make GtkSnapshot a refcounted boxed type, and add
public API that follows the builder pattern described
here: https://blogs.gnome.org/otte/2018/02/03/builders/

8 years agoGdkCursor: Add some missing (nullable) annotations
Timm Bäder [Fri, 9 Mar 2018 10:57:23 +0000 (11:57 +0100)]
GdkCursor: Add some missing (nullable) annotations

8 years agospinbutton: Remove priv pointer
Timm Bäder [Wed, 7 Mar 2018 19:57:21 +0000 (20:57 +0100)]
spinbutton: Remove priv pointer

8 years agoAvoid warnings
Matthias Clasen [Fri, 9 Mar 2018 07:13:13 +0000 (02:13 -0500)]
Avoid warnings

When generating introspection data, we instantiate types without
calling gtk_init, so make sure that extension points are registered
before the type is trying to implement them.

8 years agox11: Avoid a division by zero
Pavel Roskin [Thu, 8 Mar 2018 14:58:42 +0000 (15:58 +0100)]
x11: Avoid a division by zero

This is similar to f44baf51d9e8616a but for RandR 1.3 servers like
x11rdp and Windows Exceed which don't return a refresh rate. Avoid a
crash when that happens.

https://bugzilla.gnome.org/show_bug.cgi?id=775546

8 years agoseparator: Remove priv pointer
Timm Bäder [Wed, 7 Mar 2018 19:37:00 +0000 (20:37 +0100)]
separator: Remove priv pointer

8 years agomenubutton: Remove priv pointer
Timm Bäder [Wed, 7 Mar 2018 19:26:51 +0000 (20:26 +0100)]
menubutton: Remove priv pointer

8 years agowidget: Add a translate_coordinates version for doubles
Timm Bäder [Wed, 7 Mar 2018 14:14:37 +0000 (15:14 +0100)]
widget: Add a translate_coordinates version for doubles

So we can use that one when translating event coordinates. Also adapt
the widgetfocus demo to ensure this works.

We should probably at some point delete either the int or the double
version.

8 years agolinkbutton: Remove priv pointer
Timm Bäder [Wed, 7 Mar 2018 13:02:19 +0000 (14:02 +0100)]
linkbutton: Remove priv pointer

8 years agoexpander: Remove label-fill property
Timm Bäder [Tue, 6 Mar 2018 20:25:01 +0000 (21:25 +0100)]
expander: Remove label-fill property

It's just setting some internal boolean and nothing else. It's like this
in gtk3 as well so it can't be too important either.

8 years agoMerge branch 'expander-add-like-bin' into 'master'
Timm Bäder [Wed, 7 Mar 2018 19:09:30 +0000 (19:09 +0000)]
Merge branch 'expander-add-like-bin' into 'master'

expander: Check for an existing child when adding

See merge request GNOME/gtk!48

8 years agooverlay: Add GtkOverlay::measure child property
Benjamin Otte [Wed, 7 Mar 2018 15:04:04 +0000 (16:04 +0100)]
overlay: Add GtkOverlay::measure child property

It determines whether a child is included in the overlay's size
measurement.

The first user is (gonna be) GtkVideo.

8 years agoeventcontroller: Remove unused evmask member variable
Benjamin Otte [Wed, 7 Mar 2018 01:02:28 +0000 (02:02 +0100)]
eventcontroller: Remove unused evmask member variable

8 years agoeventcontroller: Get rid of constructed vfunc
Benjamin Otte [Wed, 7 Mar 2018 00:56:32 +0000 (01:56 +0100)]
eventcontroller: Get rid of constructed vfunc

Instead, add the controller to the widget in set_property.

8 years agotexture: Add GdkMemoryTexture
Benjamin Otte [Tue, 6 Mar 2018 02:41:13 +0000 (03:41 +0100)]
texture: Add GdkMemoryTexture

GdkMemoryTexture is a texture implementation for holding data in memory
(read: GBytes). You specify the GdkMemoryFormat that data is in and off
you go.

Renderers can use this to add uploads in various different formats and
don't need to fallback to GDK doing the conersion on the CPU.

Supported formats can be extended if we need new ones, for now I just
added the relevant ones for Cairo and GdkPixbuf.

The constructor is also private still, because I'm not sure we want to
export GdkMemoryFormat.
Wrappers that do from_cairo_surface() and for_pixbuf() do exist though.

8 years agogdk: Split out GL texture
Benjamin Otte [Mon, 5 Mar 2018 13:38:38 +0000 (14:38 +0100)]
gdk: Split out GL texture

Put GdkGLTexture into its own file and rename the API to
gdk_gl_texture_foo() instead of gdk_texture_foo_for_gl().

Apart from naming, no actual code changes.

8 years agoimwayland: Fix parent type
Carlos Garnacho [Mon, 5 Mar 2018 17:51:00 +0000 (18:51 +0100)]
imwayland: Fix parent type

It was inadvertently changed in commit 15cc20e7b.

https://gitlab.gnome.org/GNOME/gtk/issues/58

Closes: #58
8 years agoUse gio-querymodules
Matthias Clasen [Wed, 7 Mar 2018 00:10:48 +0000 (19:10 -0500)]
Use gio-querymodules

GIO has this facility, so we should use it.
At the same time, make sure the immodules directory
exists, even if we don't install any modules there
outselves.

8 years agoMake debug messages work earlier
Matthias Clasen [Tue, 6 Mar 2018 23:57:16 +0000 (18:57 -0500)]
Make debug messages work earlier

We need to be able to produce debug output during module
loading. This change ensures that we can.

8 years agoUpdate French translation
Alexandre Franke [Tue, 6 Mar 2018 21:01:36 +0000 (21:01 +0000)]
Update French translation

8 years agoexpander: Check for an existing child when adding
Peter Bloomfield [Tue, 6 Mar 2018 19:26:08 +0000 (14:26 -0500)]
expander: Check for an existing child when adding

Now that GtkExpander subclasses GtkContainer instead of GtkBin, it needs
its own guard against adding more than one child.

Also, the documentation should no longer describe adding a child as if
it is descended from GtkBin.

8 years agoentry: Fix invisible cursors
Timm Bäder [Tue, 6 Mar 2018 19:04:30 +0000 (20:04 +0100)]
entry: Fix invisible cursors

8 years agoGdkSelectionInputStreamX11: Plug a memory leak
Timm Bäder [Tue, 6 Mar 2018 18:59:29 +0000 (19:59 +0100)]
GdkSelectionInputStreamX11: Plug a memory leak

8 years agoGdkSelectionOutputStreamX11: Plug a memory leak
Timm Bäder [Tue, 6 Mar 2018 18:47:18 +0000 (19:47 +0100)]
GdkSelectionOutputStreamX11: Plug a memory leak

8 years agoexpander: fix sizes in resize_toplevel
Timm Bäder [Tue, 6 Mar 2018 16:36:04 +0000 (17:36 +0100)]
expander: fix sizes in resize_toplevel

We can't use gtk_widget_get_allocation for either non-anchored widgets
(which happens with the child widget when the expander is unexpanded)
nor toplevel windows since that will include the window decorations.

Fixes #70 in gtk4

8 years agoviewport: Remove priv pointer
Timm Bäder [Tue, 6 Mar 2018 13:37:28 +0000 (14:37 +0100)]
viewport: Remove priv pointer

8 years agoexpander: Attach the gesture to the title widget
Timm Bäder [Mon, 5 Mar 2018 16:22:20 +0000 (17:22 +0100)]
expander: Attach the gesture to the title widget

Instead of tracking whether the click happened inside the title widget
ourselves, just attach the gesture to the title widget.

8 years agoUpdate Latvian translation
Rūdolfs Mazurs [Sun, 4 Mar 2018 19:24:16 +0000 (19:24 +0000)]
Update Latvian translation

8 years agoUpdate Latvian translation
Rūdolfs Mazurs [Sun, 4 Mar 2018 19:18:11 +0000 (19:18 +0000)]
Update Latvian translation

8 years agooverlay: Make forall() remove-safe
Timm Bäder [Sun, 4 Mar 2018 19:04:43 +0000 (20:04 +0100)]
overlay: Make forall() remove-safe

Since this is a GtkContainer, forall will be used to destroy all the
widgets.

8 years agooverlay: Fix GSlide/g_free mixup
Timm Bäder [Sun, 4 Mar 2018 19:04:17 +0000 (20:04 +0100)]
overlay: Fix GSlide/g_free mixup

We free the allocated data later using g_free, so don't use GSlice when
allocating it.

8 years agooverlay: Fix remove implementation
Timm Bäder [Sun, 4 Mar 2018 19:03:54 +0000 (20:03 +0100)]
overlay: Fix remove implementation

Use the child widget list of the overlay, not the passed child.

8 years agoimcontextxim: Move initialisation into _init function
Timm Bäder [Sun, 4 Mar 2018 18:55:54 +0000 (19:55 +0100)]
imcontextxim: Move initialisation into _init function

We are creating these using g_object_new, so the _new function is never
called, resulting in a NULL mb_charset. Fix this by moving the
initialisation into the _init function.

8 years agoMerge branch 'set-client-widget-nullable' into 'master'
Benjamin Otte [Sun, 4 Mar 2018 18:29:45 +0000 (18:29 +0000)]
Merge branch 'set-client-widget-nullable' into 'master'

gtkimcontextxim: fix gtk_im_context_xim_set_client_widget not handling widget=NULL

See merge request GNOME/gtk!46

8 years agogskpango: Don't create text nodes for clipped text
Timm Bäder [Sun, 4 Mar 2018 16:48:36 +0000 (17:48 +0100)]
gskpango: Don't create text nodes for clipped text

Measure the text here directly and check if the created node bounds will
be clipped away before even creating the text node.

8 years agorendernodes: Add gsk_text_node_new_with_bounds
Timm Bäder [Sun, 4 Mar 2018 16:35:17 +0000 (17:35 +0100)]
rendernodes: Add gsk_text_node_new_with_bounds

An alternative GskTextNode constructor that does no text measuring. That
way, we can measure the text before and check if the node will be
outside of the current clip anyway.

8 years agorendernodes: Add missing nullable annotation
Timm Bäder [Sun, 4 Mar 2018 16:25:49 +0000 (17:25 +0100)]
rendernodes: Add missing nullable annotation

8 years agogl renderer: Limit texture node size to clip
Timm Bäder [Sun, 4 Mar 2018 16:15:39 +0000 (17:15 +0100)]
gl renderer: Limit texture node size to clip

8 years agooverlay: Remove child list
Timm Bäder [Sat, 3 Mar 2018 11:28:05 +0000 (12:28 +0100)]
overlay: Remove child list

8 years agooverlay: Remove priv pointer
Timm Bäder [Sat, 3 Mar 2018 10:28:57 +0000 (11:28 +0100)]
overlay: Remove priv pointer

8 years agoglglyphcache: Pass lookup key to g_hash_table_lookup directly
Timm Bäder [Fri, 2 Mar 2018 16:22:46 +0000 (17:22 +0100)]
glglyphcache: Pass lookup key to g_hash_table_lookup directly

8 years agooverlay: Fix coordinates in child_update_style_classes
Timm Bäder [Thu, 1 Mar 2018 20:47:36 +0000 (21:47 +0100)]
overlay: Fix coordinates in child_update_style_classes

Both main child and all others are in the same coordinate space, so no
need to add the parent position here.